<?php

namespace Tests\Feature;

use Tests\TestCase;

class AddressControllerTest extends TestCase
{
  public static function setUpBeforeClass(): void
  {
    self::$model = 'App\Models\Address';
    self::$table = 'addresses';
    self::$searchExpr = 'address=[lk]Uffizi';
    self::$searchRecord = ['user_id', '=', '1', 'type_id', '=', '1'];
    // Torre di Pisa
    // Piazza del Duomo, 1
    // 56126 Pisa (PI)
    self::$toIns = [
      'user_id' => 3,
      'district_id' => 67,
      'city_id' => 5197,
      'zipcode_id' => 5497,
      'type_id' => 1,
      'address' => 'Piazza del Duomo',
      'house_number' => '1',
    ];
    self::$searchToUpd = ['user_id', '=', '3', 'type_id', '=', '1'];
    self::$toUpd = ['address' => 'Piazza della Torre'];
    self::$searchToDel = ['user_id', '=', '3', 'type_id', '=', '1'];
  }
}
